import request from '@/utils/request'
export const loginApi = data => request({
  url: '/sys/login',
  method: 'POST',
  data
})
// 获取用户资料
export function userApi() {
  return request({
    url: '/sys/profile',
    method: 'post'
  })
}
// 获取用户详情数据
export const userInfoById = id => request({
  url: `/sys/user/${id}`
})
